package jeuxVideos;

public class Manette {
	private Console laConsole;
	private boolean estAllumee;

	public Manette() {
	}

	public void allumerLaConsoleAvecLaManette() {
		laConsole.allumerLaConsole();
	}

	public Console getLaConsole() {
		return laConsole;
	}

	public void setLaConsole(Console laConsole) {
		if(this.laConsole!= null)
		{
			if(this.laConsole.getLesManettes().contains(this))
				this.laConsole.retirerUneManette(this);
		}	
		
		this.laConsole = laConsole;	
	}
	
	public boolean getEstAllumee()
	{
		return estAllumee;
	}
}
